var base64Str="emhhbmdzYW46MTIzNDU2";
var buf = Buffer.from(base64Str,"base64");
var str = buf.toString("utf-8");
console.log(str)
var arr=str.split(":");
var obj={
    "用户名":arr[0],
    "密码":arr[1]
}
console.log(obj);




// var buf1=Buffer.from(arg,"base64");
// var str = buf1.toString("utf-8");
// console.log(str);//传的是dXNlck5hbWVsbGxwd2Q6MTIzNDU2
// var arr =str.split(" ");
// var userInfor={"userName":arr[1],"pwd":arr[3]}
// console.log(userInfor);
